package com.aaa.project1;

import org.junit.Test;

public class JavaTest {
    /*排序*/
    @Test
    public void test1(){
        int [] arr={1,3,5,8,2};
        Meth.sort(arr);
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }
    }
   /*最大值*/
    @Test
    public void  test2(){
        int [] arr ={3,9,5,1,};
        int b =Meth.Max(arr);
        System.out.println(b);

    }
    /*索引*/
    @Test
    public void  test3(){
        int [] arr = {5,3,9,2,1,8};
        int b =Meth.indexOf(arr,8);
        System.out.println(b);
    }
    /*拼接字符串*/
    @Test
    public void test4(){
        int[] arr = {5,3,9,2,1,8};
        String b = Meth.MyString(arr);
        System.out.println(b);
    }
    /*判断是否一致*/
    @Test
    public void  test5(){
        int [] arr ={5,3,9,2,1,8};
        int [] arr1={5,3,9,2,1,8};
        String  b = Meth.yizhi(arr,arr1);
        System.out.println(b);
    }

}
